Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HTTP login and logout features #14

Merged
merged 2 commits into from
Sep 7, 2024
Merged

Conversation

jr-araujo
Copy link
Collaborator

Because of the massive changes in the Iggyrs core, this PR is to fix 2 HTTP features:

  • Login
  • Logout

Some other changes are in place:

  • Commented, temporarily, ALL tests that are related to TCP protocol, due to the massive changes that were made in the Iggyrs core.
  • Create a new contract folder: Auth, to separate all contract classes related to Authorization/Authentication.

@@ -3,5 +3,5 @@ namespace Iggy_SDK.Contracts.Http;
public sealed class AuthResponse
{
public required int UserId { get; init; }
public Tokens? Tokens { get; init; }
public required TokenInfo? AccessToken { get; init; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No point in making required a property that is nullable aswell.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is done.

I ended up changing the sealed class to record, since the usage of this data structure is only to be a data container, though.

@jr-araujo jr-araujo changed the title FIX: Fixed HTTP login and logout features FIX: Fix HTTP login and logout features Sep 6, 2024
@numinnex numinnex changed the title FIX: Fix HTTP login and logout features Fix HTTP login and logout features Sep 7, 2024
@numinnex numinnex merged commit 242e5ac into master Sep 7, 2024
2 checks passed
@jr-araujo jr-araujo deleted the fix-login-logout-user branch September 9, 2024 08:59
@jr-araujo jr-araujo restored the fix-login-logout-user branch September 9, 2024 08:59
@jr-araujo jr-araujo deleted the fix-login-logout-user branch September 9, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants